Skip to main content

Download File

AutomatR.Slack.Activities.DownloadFile

The "Download File" activity in AutomatR is part of the Slack Channel activities package, utilizing the Slack API to download a specified file from a channel and save it to a local destination. This activity facilitates the retrieval of files shared within a Slack channel, enhancing automation workflows.

Properties

NameDescription
Input
Channel NameThe name of the channel from which the file needs to be downloaded. String variables containing the desired channel name.
File NameThe name of the file to be downloaded. String variables containing the desired file name.
Local PathThe local destination where the downloaded file will be saved. String variables containing the local path. Example: "C:\AutomatR\DownloadExample.xlsx"
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Download File" activity. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultOutputs true if the file download was successful, and false otherwise. Boolean variables indicating whether the file download was successful or encountered any errors.

How to use:

  1. Drag and drop the "Download File" activity onto the workflow.
  2. Configure the properties by specifying the channel name, file name, and local path for the downloaded file.
  3. Optionally, configure the delay.
  4. Execute the workflow to download the specified file from the Slack channel.

Example: Consider an example where the "Download File" activity is used to download a file named "example.txt" from a channel named "General":

Download File:
Delay: 2
Channel Name: "General"
File Name: "example.txt"
Local Path: "C:\\AutomatR\\DownloadedFiles\\"
Result: isDownloadSuccessful

In this example, the activity attempts to download the file from the "General" channel with the specified name and saves it to the local path "C:\AutomatR\DownloadedFiles\". The result of the operation (success or failure) is stored in the Boolean variable "isDownloadSuccessful" for further handling in the workflow.